package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsWechatMatterMapper;
import com.hckjsec.cloud.domain.AppletsWechatMatter;
import com.hckjsec.cloud.service.IAppletsWechatMatterService;

/**
 * 事项材料Service业务层处理
 * 
 * @author cyt
 * @date 2022-02-15
 */
@Service
public class AppletsWechatMatterServiceImpl implements IAppletsWechatMatterService 
{
    @Autowired
    private AppletsWechatMatterMapper appletsWechatMatterMapper;

    /**
     * 查询事项材料
     * 
     * @param id 事项材料ID
     * @return 事项材料
     */
    @Override
    public AppletsWechatMatter selectAppletsWechatMatterById(Long id)
    {
        return appletsWechatMatterMapper.selectAppletsWechatMatterById(id);
    }

    /**
     * 查询事项材料列表
     * 
     * @param appletsWechatMatter 事项材料
     * @return 事项材料
     */
    @Override
    public List<AppletsWechatMatter> selectAppletsWechatMatterList(AppletsWechatMatter appletsWechatMatter)
    {
        return appletsWechatMatterMapper.selectAppletsWechatMatterList(appletsWechatMatter);
    }

    /**
     * 新增事项材料
     * 
     * @param appletsWechatMatter 事项材料
     * @return 结果
     */
    @Override
    public int insertAppletsWechatMatter(AppletsWechatMatter appletsWechatMatter)
    {
        return appletsWechatMatterMapper.insertAppletsWechatMatter(appletsWechatMatter);
    }

    /**
     * 修改事项材料
     * 
     * @param appletsWechatMatter 事项材料
     * @return 结果
     */
    @Override
    public int updateAppletsWechatMatter(AppletsWechatMatter appletsWechatMatter)
    {
        return appletsWechatMatterMapper.updateAppletsWechatMatter(appletsWechatMatter);
    }

    /**
     * 批量删除事项材料
     * 
     * @param ids 需要删除的事项材料ID
     * @return 结果
     */
    @Override
    public int deleteAppletsWechatMatterByIds(Long[] ids)
    {
        return appletsWechatMatterMapper.deleteAppletsWechatMatterByIds(ids);
    }

    /**
     * 删除事项材料信息
     * 
     * @param id 事项材料ID
     * @return 结果
     */
    @Override
    public int deleteAppletsWechatMatterById(Long id)
    {
        return appletsWechatMatterMapper.deleteAppletsWechatMatterById(id);
    }
}
